import request from '@/utils/request'
// 登录接口
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
// 主页接口
export function getprofile() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}
// 获取用户头像
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
export function getInfo(token) {

}

export function logout() {

}
export default {
  namespaced: true,
  state: {},
  mutations: {},
  actions: {}
}
console.log(request)

